package com.yunche.iov.entity;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

public class DeviceAlarmLogStatExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public DeviceAlarmLogStatExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andIdIsNull() {
            addCriterion("Id is null");
            return (Criteria) this;
        }

        public Criteria andIdIsNotNull() {
            addCriterion("Id is not null");
            return (Criteria) this;
        }

        public Criteria andIdEqualTo(Long value) {
            addCriterion("Id =", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotEqualTo(Long value) {
            addCriterion("Id <>", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThan(Long value) {
            addCriterion("Id >", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThanOrEqualTo(Long value) {
            addCriterion("Id >=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThan(Long value) {
            addCriterion("Id <", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThanOrEqualTo(Long value) {
            addCriterion("Id <=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdIn(List<Long> values) {
            addCriterion("Id in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotIn(List<Long> values) {
            addCriterion("Id not in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdBetween(Long value1, Long value2) {
            addCriterion("Id between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotBetween(Long value1, Long value2) {
            addCriterion("Id not between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andDeviceIdIsNull() {
            addCriterion("device_id is null");
            return (Criteria) this;
        }

        public Criteria andDeviceIdIsNotNull() {
            addCriterion("device_id is not null");
            return (Criteria) this;
        }

        public Criteria andDeviceIdEqualTo(Integer value) {
            addCriterion("device_id =", value, "deviceId");
            return (Criteria) this;
        }

        public Criteria andDeviceIdNotEqualTo(Integer value) {
            addCriterion("device_id <>", value, "deviceId");
            return (Criteria) this;
        }

        public Criteria andDeviceIdGreaterThan(Integer value) {
            addCriterion("device_id >", value, "deviceId");
            return (Criteria) this;
        }

        public Criteria andDeviceIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("device_id >=", value, "deviceId");
            return (Criteria) this;
        }

        public Criteria andDeviceIdLessThan(Integer value) {
            addCriterion("device_id <", value, "deviceId");
            return (Criteria) this;
        }

        public Criteria andDeviceIdLessThanOrEqualTo(Integer value) {
            addCriterion("device_id <=", value, "deviceId");
            return (Criteria) this;
        }

        public Criteria andDeviceIdIn(List<Integer> values) {
            addCriterion("device_id in", values, "deviceId");
            return (Criteria) this;
        }

        public Criteria andDeviceIdNotIn(List<Integer> values) {
            addCriterion("device_id not in", values, "deviceId");
            return (Criteria) this;
        }

        public Criteria andDeviceIdBetween(Integer value1, Integer value2) {
            addCriterion("device_id between", value1, value2, "deviceId");
            return (Criteria) this;
        }

        public Criteria andDeviceIdNotBetween(Integer value1, Integer value2) {
            addCriterion("device_id not between", value1, value2, "deviceId");
            return (Criteria) this;
        }

        public Criteria andPlateNoIsNull() {
            addCriterion("plate_no is null");
            return (Criteria) this;
        }

        public Criteria andPlateNoIsNotNull() {
            addCriterion("plate_no is not null");
            return (Criteria) this;
        }

        public Criteria andPlateNoEqualTo(String value) {
            addCriterion("plate_no =", value, "plateNo");
            return (Criteria) this;
        }

        public Criteria andPlateNoNotEqualTo(String value) {
            addCriterion("plate_no <>", value, "plateNo");
            return (Criteria) this;
        }

        public Criteria andPlateNoGreaterThan(String value) {
            addCriterion("plate_no >", value, "plateNo");
            return (Criteria) this;
        }

        public Criteria andPlateNoGreaterThanOrEqualTo(String value) {
            addCriterion("plate_no >=", value, "plateNo");
            return (Criteria) this;
        }

        public Criteria andPlateNoLessThan(String value) {
            addCriterion("plate_no <", value, "plateNo");
            return (Criteria) this;
        }

        public Criteria andPlateNoLessThanOrEqualTo(String value) {
            addCriterion("plate_no <=", value, "plateNo");
            return (Criteria) this;
        }

        public Criteria andPlateNoLike(String value) {
            addCriterion("plate_no like", value, "plateNo");
            return (Criteria) this;
        }

        public Criteria andPlateNoNotLike(String value) {
            addCriterion("plate_no not like", value, "plateNo");
            return (Criteria) this;
        }

        public Criteria andPlateNoIn(List<String> values) {
            addCriterion("plate_no in", values, "plateNo");
            return (Criteria) this;
        }

        public Criteria andPlateNoNotIn(List<String> values) {
            addCriterion("plate_no not in", values, "plateNo");
            return (Criteria) this;
        }

        public Criteria andPlateNoBetween(String value1, String value2) {
            addCriterion("plate_no between", value1, value2, "plateNo");
            return (Criteria) this;
        }

        public Criteria andPlateNoNotBetween(String value1, String value2) {
            addCriterion("plate_no not between", value1, value2, "plateNo");
            return (Criteria) this;
        }

        public Criteria andGroupNameIsNull() {
            addCriterion("group_name is null");
            return (Criteria) this;
        }

        public Criteria andGroupNameIsNotNull() {
            addCriterion("group_name is not null");
            return (Criteria) this;
        }

        public Criteria andGroupNameEqualTo(String value) {
            addCriterion("group_name =", value, "groupName");
            return (Criteria) this;
        }

        public Criteria andGroupNameNotEqualTo(String value) {
            addCriterion("group_name <>", value, "groupName");
            return (Criteria) this;
        }

        public Criteria andGroupNameGreaterThan(String value) {
            addCriterion("group_name >", value, "groupName");
            return (Criteria) this;
        }

        public Criteria andGroupNameGreaterThanOrEqualTo(String value) {
            addCriterion("group_name >=", value, "groupName");
            return (Criteria) this;
        }

        public Criteria andGroupNameLessThan(String value) {
            addCriterion("group_name <", value, "groupName");
            return (Criteria) this;
        }

        public Criteria andGroupNameLessThanOrEqualTo(String value) {
            addCriterion("group_name <=", value, "groupName");
            return (Criteria) this;
        }

        public Criteria andGroupNameLike(String value) {
            addCriterion("group_name like", value, "groupName");
            return (Criteria) this;
        }

        public Criteria andGroupNameNotLike(String value) {
            addCriterion("group_name not like", value, "groupName");
            return (Criteria) this;
        }

        public Criteria andGroupNameIn(List<String> values) {
            addCriterion("group_name in", values, "groupName");
            return (Criteria) this;
        }

        public Criteria andGroupNameNotIn(List<String> values) {
            addCriterion("group_name not in", values, "groupName");
            return (Criteria) this;
        }

        public Criteria andGroupNameBetween(String value1, String value2) {
            addCriterion("group_name between", value1, value2, "groupName");
            return (Criteria) this;
        }

        public Criteria andGroupNameNotBetween(String value1, String value2) {
            addCriterion("group_name not between", value1, value2, "groupName");
            return (Criteria) this;
        }

        public Criteria andAlarmFlagsIsNull() {
            addCriterion("alarm_flags is null");
            return (Criteria) this;
        }

        public Criteria andAlarmFlagsIsNotNull() {
            addCriterion("alarm_flags is not null");
            return (Criteria) this;
        }

        public Criteria andAlarmFlagsEqualTo(Long value) {
            addCriterion("alarm_flags =", value, "alarmFlags");
            return (Criteria) this;
        }

        public Criteria andAlarmFlagsNotEqualTo(Long value) {
            addCriterion("alarm_flags <>", value, "alarmFlags");
            return (Criteria) this;
        }

        public Criteria andAlarmFlagsGreaterThan(Long value) {
            addCriterion("alarm_flags >", value, "alarmFlags");
            return (Criteria) this;
        }

        public Criteria andAlarmFlagsGreaterThanOrEqualTo(Long value) {
            addCriterion("alarm_flags >=", value, "alarmFlags");
            return (Criteria) this;
        }

        public Criteria andAlarmFlagsLessThan(Long value) {
            addCriterion("alarm_flags <", value, "alarmFlags");
            return (Criteria) this;
        }

        public Criteria andAlarmFlagsLessThanOrEqualTo(Long value) {
            addCriterion("alarm_flags <=", value, "alarmFlags");
            return (Criteria) this;
        }

        public Criteria andAlarmFlagsIn(List<Long> values) {
            addCriterion("alarm_flags in", values, "alarmFlags");
            return (Criteria) this;
        }

        public Criteria andAlarmFlagsNotIn(List<Long> values) {
            addCriterion("alarm_flags not in", values, "alarmFlags");
            return (Criteria) this;
        }

        public Criteria andAlarmFlagsBetween(Long value1, Long value2) {
            addCriterion("alarm_flags between", value1, value2, "alarmFlags");
            return (Criteria) this;
        }

        public Criteria andAlarmFlagsNotBetween(Long value1, Long value2) {
            addCriterion("alarm_flags not between", value1, value2, "alarmFlags");
            return (Criteria) this;
        }

        public Criteria andAlarmBegintimeIsNull() {
            addCriterion("alarm_begintime is null");
            return (Criteria) this;
        }

        public Criteria andAlarmBegintimeIsNotNull() {
            addCriterion("alarm_begintime is not null");
            return (Criteria) this;
        }

        public Criteria andAlarmBegintimeEqualTo(Date value) {
            addCriterion("alarm_begintime =", value, "alarmBegintime");
            return (Criteria) this;
        }

        public Criteria andAlarmBegintimeNotEqualTo(Date value) {
            addCriterion("alarm_begintime <>", value, "alarmBegintime");
            return (Criteria) this;
        }

        public Criteria andAlarmBegintimeGreaterThan(Date value) {
            addCriterion("alarm_begintime >", value, "alarmBegintime");
            return (Criteria) this;
        }

        public Criteria andAlarmBegintimeGreaterThanOrEqualTo(Date value) {
            addCriterion("alarm_begintime >=", value, "alarmBegintime");
            return (Criteria) this;
        }

        public Criteria andAlarmBegintimeLessThan(Date value) {
            addCriterion("alarm_begintime <", value, "alarmBegintime");
            return (Criteria) this;
        }

        public Criteria andAlarmBegintimeLessThanOrEqualTo(Date value) {
            addCriterion("alarm_begintime <=", value, "alarmBegintime");
            return (Criteria) this;
        }

        public Criteria andAlarmBegintimeIn(List<Date> values) {
            addCriterion("alarm_begintime in", values, "alarmBegintime");
            return (Criteria) this;
        }

        public Criteria andAlarmBegintimeNotIn(List<Date> values) {
            addCriterion("alarm_begintime not in", values, "alarmBegintime");
            return (Criteria) this;
        }

        public Criteria andAlarmBegintimeBetween(Date value1, Date value2) {
            addCriterion("alarm_begintime between", value1, value2, "alarmBegintime");
            return (Criteria) this;
        }

        public Criteria andAlarmBegintimeNotBetween(Date value1, Date value2) {
            addCriterion("alarm_begintime not between", value1, value2, "alarmBegintime");
            return (Criteria) this;
        }

        public Criteria andAlarmEntimeIsNull() {
            addCriterion("alarm_entime is null");
            return (Criteria) this;
        }

        public Criteria andAlarmEntimeIsNotNull() {
            addCriterion("alarm_entime is not null");
            return (Criteria) this;
        }

        public Criteria andAlarmEntimeEqualTo(Date value) {
            addCriterion("alarm_entime =", value, "alarmEntime");
            return (Criteria) this;
        }

        public Criteria andAlarmEntimeNotEqualTo(Date value) {
            addCriterion("alarm_entime <>", value, "alarmEntime");
            return (Criteria) this;
        }

        public Criteria andAlarmEntimeGreaterThan(Date value) {
            addCriterion("alarm_entime >", value, "alarmEntime");
            return (Criteria) this;
        }

        public Criteria andAlarmEntimeGreaterThanOrEqualTo(Date value) {
            addCriterion("alarm_entime >=", value, "alarmEntime");
            return (Criteria) this;
        }

        public Criteria andAlarmEntimeLessThan(Date value) {
            addCriterion("alarm_entime <", value, "alarmEntime");
            return (Criteria) this;
        }

        public Criteria andAlarmEntimeLessThanOrEqualTo(Date value) {
            addCriterion("alarm_entime <=", value, "alarmEntime");
            return (Criteria) this;
        }

        public Criteria andAlarmEntimeIn(List<Date> values) {
            addCriterion("alarm_entime in", values, "alarmEntime");
            return (Criteria) this;
        }

        public Criteria andAlarmEntimeNotIn(List<Date> values) {
            addCriterion("alarm_entime not in", values, "alarmEntime");
            return (Criteria) this;
        }

        public Criteria andAlarmEntimeBetween(Date value1, Date value2) {
            addCriterion("alarm_entime between", value1, value2, "alarmEntime");
            return (Criteria) this;
        }

        public Criteria andAlarmEntimeNotBetween(Date value1, Date value2) {
            addCriterion("alarm_entime not between", value1, value2, "alarmEntime");
            return (Criteria) this;
        }

        public Criteria andLastAlarmidIsNull() {
            addCriterion("last_alarmid is null");
            return (Criteria) this;
        }

        public Criteria andLastAlarmidIsNotNull() {
            addCriterion("last_alarmid is not null");
            return (Criteria) this;
        }

        public Criteria andLastAlarmidEqualTo(Long value) {
            addCriterion("last_alarmid =", value, "lastAlarmid");
            return (Criteria) this;
        }

        public Criteria andLastAlarmidNotEqualTo(Long value) {
            addCriterion("last_alarmid <>", value, "lastAlarmid");
            return (Criteria) this;
        }

        public Criteria andLastAlarmidGreaterThan(Long value) {
            addCriterion("last_alarmid >", value, "lastAlarmid");
            return (Criteria) this;
        }

        public Criteria andLastAlarmidGreaterThanOrEqualTo(Long value) {
            addCriterion("last_alarmid >=", value, "lastAlarmid");
            return (Criteria) this;
        }

        public Criteria andLastAlarmidLessThan(Long value) {
            addCriterion("last_alarmid <", value, "lastAlarmid");
            return (Criteria) this;
        }

        public Criteria andLastAlarmidLessThanOrEqualTo(Long value) {
            addCriterion("last_alarmid <=", value, "lastAlarmid");
            return (Criteria) this;
        }

        public Criteria andLastAlarmidIn(List<Long> values) {
            addCriterion("last_alarmid in", values, "lastAlarmid");
            return (Criteria) this;
        }

        public Criteria andLastAlarmidNotIn(List<Long> values) {
            addCriterion("last_alarmid not in", values, "lastAlarmid");
            return (Criteria) this;
        }

        public Criteria andLastAlarmidBetween(Long value1, Long value2) {
            addCriterion("last_alarmid between", value1, value2, "lastAlarmid");
            return (Criteria) this;
        }

        public Criteria andLastAlarmidNotBetween(Long value1, Long value2) {
            addCriterion("last_alarmid not between", value1, value2, "lastAlarmid");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}